<?php

class Core_Form_Admin_Settings_General_Site extends Core_Form_Admin_Settings_Base
{
	protected function _init()
	{
		$this -> setMeta(array(
				'name' => 'form_settings_site',
				'title' => 'site settings',
				'desc' => ''
		));
		$this -> addChild('@title', 'site_head_title', array('label' => 'meta title', ));

		$this -> addChild('@title', 'site_head_title-separate', array('label' => 'title separate', ));

		$this -> addChild('@radio', 'site_head_title-option', array(
				'multiOptions' => array(
						'append' => 'append',
						'prepend' => 'prepend',
						'set' => 'override',
				),
				'label' => 'title option',
		));

		$this -> addChild('@title', 'site_head_author', array('label' => 'meta author', ));

		$this -> addChild('@title', 'site_head_owner', array('label' => 'meta owner', ));

		$this -> addChild('@title', 'site_head_copyright', array('label' => 'meta copyright', ));

		$this -> addChild('@title', 'site_head_generator', array('label' => 'meta generator', ));

		$this -> addChild('@textarea', 'site_head_keyword', array('label' => 'meta keywords', ));

		$this -> addChild('@radio', 'site_head_keyword-option', array(
				'label' => 'keyword option',
				'multiOptions' => array(
						'append' => 'append',
						'prepend' => 'prepend',
						'set' => 'override',
				),
		));

		$this -> addChild('@textarea', 'site_head_desc', array('label' => 'meta description', ));

		$this -> addChild('@radio', 'site_head_visit', array(
				'label' => 'meta visit',
				'multiOptions' => array(
						'no visit' => 'no visit',
						'1 day' => '1 day',
						'2 days' => '2 days',
						'3 days' => '3 days',
						'4 days' => '4 days',
						'5 days' => '5 days',
						'6 days' => '6 days',
						'1 week' => '1 week',
				),
		));

		$this -> addChild('@radio', 'site_head_index', array(
				'label' => 'meta index',
				'multiOptions' => array(
						'indexing' => 'indexing',
						'no index' => 'no index',
				),
		));

		$this -> addChild('@group', 'buttons');

		$group = $this -> buttons -> addChild('@submit', '_submit') -> addChild('@cancel', '_cancel');
	}

}
